<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>影厅列表</h1>
<header th:replace="index::header"></header>
<table th:if="${'table'.equals(#request.getParameter('el'))}"
    border="1" cellspacing="0" cellpadding="5">
    <tr>
        <th>编号</th>
        <th>名称</th>
        <th>3D</th>
        <th>大小</th>
        <th>座位数</th>
    </tr>
    <tr th:each=" h : ${halls} ">
        <td th:text="${h.id}">编号</td>
        <td th:text="${h.name}">名称</td>
        <td th:text="${h.is3d}">3D</td>
        <td th:text="${h.size}">大小</td>
        <td th:text="${h.seats}">座位数</td>
    </tr>
</table>
<ul th:if="${'ul'.equals(#request.getParameter('el'))}" th:each="h:${halls}">
    <li th:text="${h.id}">编号</li>
    <li th:text="${h.name}">名称</li>
    <li th:text="${h.is3d}">3D</li>
    <li th:text="${h.size}">大小</li>
    <li th:text="${h.seats}">座位数</li>
</ul>
<footer th:replace="index::#ft"></footer>
</body>
</html>